<template>
    <van-swipe :autoplay="3000" lazy-render>
        <van-swipe-item v-for="item in images" :key="item">
            <img :src="item.image" width="100%" height="90px" />
        </van-swipe-item>
    </van-swipe>
</template>

<script lang="ts" setup>
import { ref } from "vue"
import { getjigou } from '../../../api/http'
//轮播
const images = ref<any>([])
getjigou().then(res => {
    // console.log(res.data);
    const { banners } = res.data
    images.value = banners
})
</script>

<style lang="scss" scoped></style>